package com.itheima.homework;

import java.io.FileReader;

public class demo04 {
    public static void main(String[] args) {
        try(FileReader fr = new FileReader("shi.txt")){
            int len;
            char[] bytes = new char[10];
            while((len = fr.read(bytes))!= -1){
                System.out.print(new String(bytes,0,len));
            }
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
